<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/task.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		
		}
	});
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3>编辑任务信息</h3>
</div>
<div class="widget" style="width:400px;float:left;">
	<form id="editTaskForm">
		<table class="table table-striped">
			<tbody>
			<tr><td class="table-left">标题</td>
				<td><input type="text" id="title" name="title" value="${(task.title)!''}" />
					<input type="hidden" id="code" name="code" value="${(task.code)!''}"/>
				</td>
			</tr>
			<tr><td class="table-left">开始时间</td>
				<td><input id="start" type="text" name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="${(task.start?string('yyyy-MM-dd'))!''}"></td>
			</tr>
			<tr><td class="table-left">结束时间</td>
				<td><input id="end" type="text" name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="${(task.end?string('yyyy-MM-dd'))!''}"></td>
			</tr>
			<tr><td class="table-left">提醒时间</td>
				<td><input id="rt" type="text" name="rt" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="${(task.rt?string('yyyy-MM-dd'))!''}"></td>
			</tr>
			<tr><td class="table-left">执行人</td>
				<td><@mte.User id='selection2' name='ru' nullstr='请选择' organCode=(cu_organCode) classname="uniformselect"/></td>
			</tr>
			<tr><td class="table-left">内容</td>
				<td><textarea id="content" name="content" cols="30">${(task.content)!''}</textarea></td>
			</tr>
			<tr><td class="table-left">备注</td>
				<td><textarea id="remark" name="remark" cols="30">${(task.remark)!''}</textarea></td>
			</tr>
			<tr><td colspan="2" style="text-align: center;">
					<a href="#" class="btn btn-info" onclick="javascript:saveTask_task(); return false;">
						<i class="icon-save"></i> &nbsp;保&nbsp;&nbsp;存
					</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="#" class="btn btn-primary" onclick="javascript:history.back(); return false;">
						<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
					</a>
				</td>
			</tr>
			</tbody>
		</table>
	</form>
</div>
